﻿using System;
// <copyright file="Modifier.cs" company="Gravity Age Studios">
// Code released under the MIT license (see License.txt).
// </copyright>
// <author>Vicente Cartas Espinel</author>
// <email>vicente.cartas@gmail.com</email>
namespace LightSwitchApplication
{
    using System;

    public partial class Modifier
    {
        #region Summary

        partial void Summary_Compute(ref string result)
        {
            if (string.IsNullOrEmpty(this.Condition))
            {
                result = this.Expression;
            }
            else
            {
                result = string.Format("{0} ({1})", this.Expression, this.Condition);
            }
        }

        #endregion
    }
}
